Skip to content

docs: correct the default log level in the README - #156

Merged
adamlogic merged 1 commit into
judoscale:mainfrom
kavdev:fix-readme-log-level-default
Dec 1, 2026
Merged

adamlogic merged 1 commit into
judoscale:mainfrom
kavdev:fix-readme-log-level-default

Conversation

@kavdev

@kavdev kavdev commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

The Django and Flask configuration examples in the README say:

# Log level defaults to ENV["LOG_LEVEL"] or "INFO".

The code falls back to "WARN", and reads JUDOSCALE_LOG_LEVEL before LOG_LEVEL. From judoscale/core/config.py:

DEFAULTS = {"REPORT_INTERVAL_SECONDS": 10, "LOG_LEVEL": "WARN"}
initialdata["LOG_LEVEL"] = env.get(
    "JUDOSCALE_LOG_LEVEL", env.get("LOG_LEVEL", initialdata["LOG_LEVEL"])
)

test_on_custom and test_judoscale_log_level_env in tests/test_config.py cover both: with no env set the level is "WARN", and JUDOSCALE_LOG_LEVEL wins over LOG_LEVEL.

This PR changes the comment in both examples to:

# Log level defaults to ENV["JUDOSCALE_LOG_LEVEL"], then ENV["LOG_LEVEL"], then "WARN".

The default was "INFO" until #47 (e2d3262), where the Config refactor introduced DEFAULTS with "WARN". That PR doesn't mention the change, so if "INFO" is the intended default, I can change this PR to restore it in config.py instead.

Docs only; no code changes.

@adamlogic
adamlogic merged commit 77bc5bd into judoscale:main Dec 1, 2026
5 checks passed
@adamlogic

Copy link
Copy Markdown
Member

Thanks!

adamlogic pushed a commit that referenced this pull request Dec 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.18.0](v1.17.0...v1.18.0)
(2026-12-01)


### Features

* allow RQ 3
([#155](#155))
([2ef9d09](2ef9d09))
* ignore queue time for requests with large bodies
([#157](#157))
([a00afd7](a00afd7))


### Documentation

* correct the default log level in the README
([#156](#156))
([77bc5bd](77bc5bd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants